/***********************************************
/gen auto by zuitools
***********************************************/

#include "entry/EasyUIContext.h"
#include "sliderwindowActivity.h"
static ZKWindow* mWindow1;
static ZKSlideWindow* mSlideWindow1;
static ZKTextView* mTextweek;
static ZKTextView* mTextDate;
/*register activity*/
REGISTER_ACTIVITY(sliderwindowActivity);

#include "logic/sliderwindowLogic.cc"
sliderwindowActivity::sliderwindowActivity() {
	//todo add init code here
}
sliderwindowActivity::~sliderwindowActivity() {
	//todo add init file here
}
const char* sliderwindowActivity::getAppName() const{
	return "sliderwindow.ftu";
}
void sliderwindowActivity::onCreate() {
	Activity::onCreate();
	//TODO: add create init code 
	mWindow1 = (ZKWindow*)findControlByID(ID_SLIDERWINDOW_Window1);
	mSlideWindow1 = (ZKSlideWindow*)findControlByID(ID_SLIDERWINDOW_SlideWindow1);
	if(mSlideWindow1!= NULL){
		mSlideWindow1->setSlideItemClickListener(this);
	}
	mTextweek = (ZKTextView*)findControlByID(ID_SLIDERWINDOW_Textweek);
	mTextDate = (ZKTextView*)findControlByID(ID_SLIDERWINDOW_TextDate);
	onUI_init();
	// 如果需要定时器功能，可以打开下面部分代码，然后在onTimer里面响应；参数0是id，1是时间间隔ms 
	//registerTimer(0, 100); 
}
void sliderwindowActivity::onClick(ZKBase *pBase) {
	//TODO: add widget onClik code 
	switch(pBase->getID()){ 
	}
	Activity::onClick(pBase);
}
void sliderwindowActivity::onResume() {
	Activity::onResume();
}
void sliderwindowActivity::onPause() {
	Activity::onPause();
}
void sliderwindowActivity::onIntent(const Intent *intentPtr) {
	//TODO:  
	
	Activity::onIntent(intentPtr);
}
bool sliderwindowActivity::onTimer(int id) {
	return onUI_Timer(id);
}
void sliderwindowActivity::onSlideItemClick(ZKSlideWindow *pSlideWindow,int index){
	if(pSlideWindow == mSlideWindow1){
		onSlideWindowItemClick_SlideWindow1(index);
	}
}
